Microsoft Tabular Modeling Cookbook by Unknown
Author:Unknown
Language: eng
Format: epub
Publisher: Packt Publishing
Getting ready
This recipe extends the model that was built in the recipe titled Using the last non-empty function for stock data by creating a currency conversion based on the USD Gross Sales measure. The model includes the table of exchange rates (Currency Conversion) that shows the USD conversion from a currency. These rates appear for every day of history.
The sales data records its transactions in the source currency where the sale has taken place (see the Reseller Sales table). Therefore, if we wish to calculate a converted amount, we must first determine the USD value of line items by multiplying with the exchange rate applicable to the currency that the sale was recorded in, and then, dividing by the USD value for the target currency.
The Grouping by binning and sorting with ranks recipe included the creation of the additional column titled usd_gross_sales to the Resellers Sales table, which shows the value of the sale line in USD. In this recipe, we reproduce this field in a two-step process: firstly, we add the USD conversion rate (the value required to convert the lines value to USD) and then, we add the usd_gross_sales column.
While we could (and have) included this as a single step (see the definition of the usd_gross_sales column in the Grouping by binning and sorting with ranks recipe), it may make more sense to have a column value for the USD conversion in every row because it would be used (in a real environment) by multiple measures. For example, a conversion rate would be required for each standard measure such as Gross Sales, Net Sales, Cost of Goods Sold, and Profit. However, in this recipe we only work with Gross Sales.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
What's Done in Darkness by Kayla Perrin(26807)
The Ultimate Python Exercise Book: 700 Practical Exercises for Beginners with Quiz Questions by Copy(20674)
De Souza H. Master the Age of Artificial Intelligences. The Basic Guide...2024 by Unknown(20449)
D:\Jan\FTP\HOL\Work\Alien Breed - Tower Assault CD32 Alien Breed II - The Horror Continues Manual 1.jpg by PDFCreator(20446)
The Fifty Shades Trilogy & Grey by E L James(19314)
Shot Through the Heart: DI Grace Fisher 2 by Isabelle Grey(19266)
Shot Through the Heart by Mercy Celeste(19130)
Wolf & Parchment: New Theory Spice & Wolf, Vol. 10 by Isuna Hasekura and Jyuu Ayakura(17295)
Python GUI Applications using PyQt5 : The hands-on guide to build apps with Python by Verdugo Leire(17230)
Peren F. Statistics for Business and Economics...Essential Formulas 3ed 2025 by Unknown(17077)
Wolf & Parchment: New Theory Spice & Wolf, Vol. 03 by Isuna Hasekura and Jyuu Ayakura & Jyuu Ayakura(17000)
Wolf & Parchment: New Theory Spice & Wolf, Vol. 01 by Isuna Hasekura and Jyuu Ayakura & Jyuu Ayakura(16617)
The Subtle Art of Not Giving a F*ck by Mark Manson(14619)
The 3rd Cycle of the Betrayed Series Collection: Extremely Controversial Historical Thrillers (Betrayed Series Boxed set) by McCray Carolyn(14311)
Stepbrother Stories 2 - 21 Taboo Story Collection (Brother Sister Stepbrother Stepsister Taboo Pseudo Incest Family Virgin Creampie Pregnant Forced Pregnancy Breeding) by Roxi Harding(13977)
Scorched Earth by Nick Kyme(12964)
Drei Generationen auf dem Jakobsweg by Stein Pia(11149)
Suna by Ziefle Pia(11077)
Scythe by Neal Shusterman(10557)